package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;

import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.*;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientRouteDTO;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
import org.wu.framework.core.mapper.LazyStructMapper;
import org.wu.framework.core.mapper.LazyStructMappers;

/**
 * describe 客户端代理路由规则
 *
 * @author Jia wei Wu
 * @date 2025/04/05 09:00 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
 **/
@LazyStructMapper
public interface LazyNettyClientRouteDTOAssembler {


    /**
     * describe MapStruct 创建的代理对象
     *
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRouteDTOAssembler INSTANCE = LazyStructMappers.getMapper(LazyNettyClientRouteDTOAssembler.class);

    /**
     * describe 应用层存储入参转换成 领域对象
     *
     * @param lazyNettyClientRouteStoryCommand 保存客户端代理路由规则对象
     * @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteStoryCommand lazyNettyClientRouteStoryCommand);

    /**
     * describe 应用层更新入参转换成 领域对象
     *
     * @param lazyNettyClientRouteUpdateCommand 更新客户端代理路由规则对象
     * @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteUpdateCommand lazyNettyClientRouteUpdateCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyClientRouteQueryOneCommand 查询单个客户端代理路由规则对象参数
     * @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteQueryOneCommand lazyNettyClientRouteQueryOneCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyClientRouteQueryListCommand 查询集合客户端代理路由规则对象参数
     * @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteQueryListCommand lazyNettyClientRouteQueryListCommand);

    /**
     * describe 应用层删除入参转换成 领域对象
     *
     * @param lazyNettyClientRouteRemoveCommand 删除客户端代理路由规则对象参数
     * @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteRemoveCommand lazyNettyClientRouteRemoveCommand);

    /**
     * describe 持久层领域对象转换成DTO对象
     *
     * @param lazyNettyClientRoute 客户端代理路由规则领域对象
     * @return {@link LazyNettyClientRouteDTO} 客户端代理路由规则DTO对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyClientRouteDTO fromLazyNettyClientRoute(LazyNettyClientRoute lazyNettyClientRoute);
}